<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2018/6/3
  Time: 20:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%

    String name=request.getParameter("name");
    String password=request.getParameter("password");
    if("admin".equals(name)&&"123456".equals(password)) {
        out.write("登录成功！");
        boolean isLogin = true;
        session.setAttribute("isLogin", "true");
        response.sendRedirect("useList.jsp");
    }else{

        out.write("用户名或密码错误！");

    }

%>


</body>
</html>
